package com.cyx;

import java.util.Scanner;

import static java.lang.System.exit;

/**
 * @author 陈裕星
 * @version 1.0
 */
public class 回文数 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();

        //转换为字符串
        String string = Integer.toString(i);

        //双指针遍历
        int start = 0, end = string.length() - 1;
        while(start <= end){
            if(string.charAt(start) != string.charAt(end)){
                System.out.println("不是回文数");
                exit(0);
            }
            start++;
            end--;
        }
        System.out.println("是回文数");
    }
}
